﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Navigation;
using System.Windows.Shapes;
using MineSweeper.Data;
using System.ComponentModel;
using System.Diagnostics;
using System.Windows.Interop;
using MineSweeper.Themes;
using System.Runtime.InteropServices;
using System.Windows.Forms;
namespace MineSweeper.Windows
{
    /// <summary>
    /// Interaction logic for MainWindow.xaml
    /// </summary>
    public partial class MainWindow : Window
    {
        public MainWindow()
        {
            InitializeComponent();
        }

        private void mainWindow_Loaded(object sender, RoutedEventArgs e)
        {
            ThemeManager.ApplyTheme(this, Properties.Settings.Default.ActiveThemeName);
            //SL 7/18/13 This was added because I encountered a problem in which the game did save the method of rendering upon restart
            RenderOptions.ProcessRenderMode = Properties.Settings.Default.UseSoftwareRendering ? RenderMode.SoftwareOnly : RenderMode.Default;
        }
    }
}
